@layout("/common/_tree_container.html",{plugins:["ztree"],js:["/assets/modular/system/btyInventory/btyInventory.js"]}){
<link rel="stylesheet" type="text/css" href="/assets/modular/system/jq/jquery-ui.min.css">
<script src="https://libs.baidu.com/jquery/2.0.0/jquery.js"></script>
<script src="/assets/modular/system/jq/jquery-ui.min.js"></script>
<style>
    .layui-tree-entry{
        /*display: none;*/
    }
</style>
<div class="layui-body-header">
    <span class="layui-body-header-title">库存管理</span>
</div>
<div id="myContiner" style="height: 100%">
    <div class="ui-layout-west">
        <div class="box box-main">
            <div class="ui-layout-content">
                <div id="shop"></div>
            </div>
        </div>
    </div>
    <div class="ui-layout-center">
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">

                            <div class="layui-inline">
<!--                                <label class="layui-form-label label-title">店名</label>-->
<!--                                <div class="layui-input-block label-block">-->
<!--                                    <input id="dm" class="layui-input" type="text" placeholder="请填写店名" onclick="hhh()"-->
<!--                                           autocomplete="off" class="layui-input"/>-->
<!--                                </div>-->

                                <label class="layui-form-label layui-inline shop-name">店名</label>
                                <div class="layui-inline" style="display: inline-block">
                                    <select name="dm" lay-filter="language" id="dm" lay-search="">
                                        <option value=''>全部</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label shop-name">日期</label>
                                <div class="layui-inline" style="display: inline-block">
                                    <input id="timeLimit" class="layui-input" type="text" autocomplete="off"
                                           placeholder="创建时间"/>
                                </div>
                            </div>

                            <div class="layui-inline" style="text-align: center;margin-left: 15px">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索
                                </button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="noticeTable" lay-filter="noticeTable">
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
</div>
</div>

<script type="text/html" id="tableBar"></script>
<script src="https://libs.baidu.com/jquery/2.0.0/jquery.js"></script>
<script>

    function hhh() {
        const url = "btyInventory?selectDM=";
        $('#dm').autocomplete({
            source: function (request, response) {
                var term = request.term;
                $.ajax({
                    type: "POST",
                    url: url + request.term,
                    async: false,
                    contentType: 'application/json',
                    success: function (data) {
                        response($.map(data, function (item) {
                            return {
                                label: item.dm
                            };
                        }));
                    },
                });
            },
            focus: function (event, ui) {
                return false;
            },
            select: function (event, ui) {
                $("#dm").val(ui.item.label);
                return false;
            }
        });
    }


</script>
@}